package de.karlNet.sambamanager.ldapController.commands;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Controller;

import de.karlNet.sambamanager.ldapModel.LdapUser;

@Controller
@Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
public class RemoveUser extends BaseCommand {
	@Autowired
	private RemoveLdapObject removeLdapObject;

	public void removeUserItself(LdapUser ldapUser) {
		this.removeLdapObject.removeObject(ldapUser);
		this.resetTrees();
	}
}
